<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>iGoogle</title>
    <script>var _IG_time_epoch = (new Date()).getTime();</script>
    <script src="js/ig.js"></script>
    <script>var domain = document.location.hostname;
    var google_pos = domain.indexOf('.google.');
    if (google_pos > -1)
    {
        domain = domain.substring(google_pos);
        document.cookie = "TZ=" + (new Date()).getTimezoneOffset() + ';path=/;domain=' + domain;
    }
    var igdnd = document.cookie;
    if (igdnd.indexOf("IGDND=1") == -1)
    {
        if (igdnd.length > 0)
        {
            window.location.reload();
        }
    }
    else
    {
        document.cookie = "IGDND=0; expires=Thu, 01-Jan-1970 00:00:00 GMT";
    }
    _et = "Wl2JmYh0";
    _source = "";
    _uli = true;
    _pnlo = false;
    _mpnlo = false;
    _pl = false;
    _mod = true;
    _pid = "";
    _old_html = false;
    _use_old_feed_styles = false;
    _cbp = true;
    _is_dasher = false;
    var _pl_data = {};</script>
    <script><!--
    function save_chkbox_value(hidden_elem_name, checked)
    {
        var hidden_elem = document.getElementById(hidden_elem_name);
        hidden_elem.value = checked ? "1" : "0";
    }
    function RemoteModule(spec_url, id, render_inline, base_iframe_url, caching_disabled)
    {
        this.spec_url = spec_url;
        this.id = id;
        this.render_inline = render_inline;
        this.base_iframe_url = base_iframe_url;
        this.caching_disabled = caching_disabled;
        this.old_width = 0;
        this.wants_scaling = false;
        this.is_inlined = function()
        {
            return this.base_iframe_url == "";
        };
    }
    ;
    var remote_modules = [];

    function ifpc_resizeIframe(iframe_id, height)
    {
        var el = document.getElementById(iframe_id);
        if (el)
        {
            el.style.height = height + "px";
        }
    }
    _IFPC.registerService('resize_iframe', ifpc_resizeIframe);
    function _ig_gmid_(iframe_id)
    {
        return(iframe_id.split("_")[2]);
    }
    function _setModTitle(title, module_id)
    {
        var title_element = _gel("m_" + module_id + "_title");
        if (title_element)
        {
            title_element.innerHTML = _hesc(title);
        }
    }
    function ifpc_setTitle(iframe_id, title)
    {
        if (typeof(iframe_id) == undefined || !iframe_id || iframe_id == "undefined")
        {
            return;
        }
        _setModTitle(title, _ig_gmid_(iframe_id));
    }
    _IFPC.registerService('set_title', ifpc_setTitle);
    function _IG_SetTitle(title, specified_module_id)
    {
        if (typeof(specified_module_id) == "undefined" || !specified_module_id || specified_module_id == "undefined")
        {
            throw new Error("Inline modules must specify their " + "__MODULE_ID__ when using _IG_SetTitle");
        }
        else
        {
            _setModTitle(title, specified_module_id);
        }
    }
    function ifpc_setPref(iframe_id, var_args)
    {
        var module_id = _ig_gmid_(iframe_id);
        var prefs = new _IG_Prefs(module_id);
        var keyValues = new Array();
        for (var n = 1; n < arguments.length; n += 2)
        {
            keyValues.push(arguments[n], arguments[n + 1]);
        }
        prefs.set.apply(prefs, keyValues);
    }
    _IFPC.registerService('set_pref', ifpc_setPref);
    // -->
    </script>
    <script src="js/libminimessage.js"></script>
    <style>.modbox .el {
        display:;
    }

    .modbox .csl, .modbox .es {
        display: none;
    }

    .modbox_e .el {
        display: none;
    }

    .modbox_e .csl, .modbox .es {
        display:;
    }

    .dm {
        position: relative;
        width: 1px;
        height: 1px;
    }

    .fres {
        width: expression( _gel( "ffresults" ) . offsetWidth + "px" );
        overflow: hidden;
    }

    .panelo {
    }

    .panelc {
    }

    .mod {
    }

    .unmod {
    }

    form {
        display: inline;
    }

    .c {
        clear: both;
    }

    .fbox {
        margin-top: 1px;
        margin-right: 6px;
        display: block;
        overflow: hidden;
        width: 12px;
        height: 12px;
        background-image: url( '/ig/images/max_dark_blue.gif' );
        background-repeat: no-repeat;
        cursor: hand;
        cursor: pointer;
    }

    .fmaxbox {
        background-image: url( '/ig/images/max_dark_blue.gif' );
    }

    .fminbox {
        background-image: url( '/ig/images/min_dark_blue.gif' );
    }

    a.fmaxbox:hover {
        background-image: url( '/ig/images/max_dark_blue_highlight.gif' );
    }

    a.fminbox:hover {
        background-image: url( '/ig/images/min_dark_blue_highlight.gif' );
    }

    .f_tbl {
        font-size: 12px;
        margin-right: 2px;
        margin-left: 2px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .fr_tbl {
        margin-right: 2px;
        margin-left: 2px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .fb {
        font-size: 12px;
        padding: 2px;
        padding-top: 4px;
        border: 1px solid #d1d3d4;
        border-top: none;
        overflow: auto;
    }

    .sftl {
        border: 1px solid #d1d3d4;
        border-bottom: none;
    }

    .uftl {
        border: 1px solid white;
        border-bottom: none;
    }
    </style>
    <link rel="stylesheet" type="text/css" href="css/ig.css"/>
    <style>.dialog .top1, .dialog .top2, .dialog .bot1, .dialog .bot2 {
        height: 0px;
        margin: 0;
        font-size: 1px;
        background: #CBDCED;
    }

    * html .dialog .bot2 {
        margin: 0 2px;
    }

    * html .dialog .bot1 {
        margin: 0 3px;
    }

    .dialog .titlebar {
        color: black;
        font-weight: bold;
        background: #E2EEFA;
        min-height: 14px;
        padding: 5px 12px 5px 12px;
        border-top: 4px solid #CBDCED;
        border-left: 4px solid #CBDCED;
        border-right: 4px solid #CBDCED;
        font-size: 100%;
    }

    * html .dialog .titlebar {
        height: 14px;
    }

    .dialog .body {
        background: #FFFFFF;
        padding: 36px 40px 3px 40px;
        border-left: 4px solid #CBDCED;
        border-right: 4px solid #CBDCED;
        border-bottom: 4px solid #CBDCED;
    }

    .dialog .outerborder {
        border: 1px solid #3A5774;
    }

    .buttontable {
        width: 50%;
    }

    .dialog .buttontable td {
        text-align: center;
        padding: 24px 2px 10px 2px;
    }
    </style>
    <style>#gbar {
        float: left;
        height: 22px
    }

    #gbarl {
        border-top: 1px solid #c9d7f1;
        font-size: 0;
        height: 1px;
        position: absolute;
        right: 0;
        top: 24px;
        width: 110%
    }

    #gbar a {
        color: #00c
    }

    #gbar .gbard {
        background: #fff;
        border: 1px solid;
        border-color: #c9d7f1 #36c #36c #a2bae7;
        display: none;
        font-size: 13px;
        position: absolute;
        top: 24px;
        z-index: 1000
    }

    #gbar .gbard a {
        display: block;
        padding: .2em .5em;
        text-decoration: none;
        white-space: nowrap
    }

    #gbar .gbard a:hover {
        background: #36c;
        color: #fff
    }

    #gbar td {
        font-size: 13px;
        padding-right: 1em
    }

    #guser {
        font-size: 13px;
        padding-bottom: 7px !important;
        padding-top: 0
    }

    #gbarc {
        font-size: 0;
        height: 1px
    }

    #guser, #gbarc {
        background-color: #fff
    }

    #guser {
        color: #000;
        margin-bottom: 0px
    }

    #guser a:link, #guser a:visited, #guser a:hover {
        color: #00c
    }</style>
    <script>window.gbar = {};
    (function()
    {
        function o(a, b, c)
        {
            var e = "on" + b;
            if (a.addEventListener)
            {
                a.addEventListener(b, c, false)
            }
            else if (a.attachEvent)
            {
                a.attachEvent(e, c)
            }
            else
            {
                var d = a[e];
                a[e] = function()
                {
                    var f = d.apply(this, arguments),g = c.apply(this, arguments);
                    return f == undefined ? g : (g == undefined ? f : g && f)
                }
            }
        }
        ;
        var h = window.gbar,m = ["affdom","channel","client","hl","hs","ie","lr","ned","oe","og","rls","rlz"];
        function i(a)
        {
            return escape(unescape(a.replace(/\+/g, " "))).replace(/\+/g, "%2B")
        }
        function j(a)
        {
            return a == "c" || a == "o" || a == "m"
        }
        h.getHtml = function(a)
        {
            var b;
            for (var c = 0; c < a.length; c++)
            {
                if (a[c][2] == "")
                {
                    b = a[c][0]
                }
            }
            var e = j(b) ? " target=_blank" :
                    "",d = "<td nowrap>",f = "<table border=0 cellpadding=0 cellspacing=0 style=margin-left:"
                    + h.getPad(true) + "px><tr>" + d;
            for (var c = 0; c < a.length; c++)
            {
                if (a[c][0] == b)
                {
                    f += a[c][1].bold() + d
                }
                else
                {
                    f += "<a href=";
                    if (a[c][3] == 3)
                    {
                        f += '# onclick="this.blur();return gbar.toggle(event)" style=text-decoration:none' + e + "><u>"
                                + a[c][1] + "</u> <span style=font-size:11px>&#9660;</span></a><tr><td colspan=" + c
                                + "><td><iframe class=gbard id=gbarif style=border:0;z-index:999></iframe><div class=gbard id=gbardd onclick=gbar.stopB(event)>";
                        d = ""
                    }
                    else
                    {
                        f += n(b, a[c][0], a[c][2]) + e + " onclick=gbar.close(event)>" + a[c][1] + "</a>" + d
                    }
                }
            }
            f += "</div></table>";
            return f
        };
        h.getPad = function(a)
        {
            var b = -1,c = a ? 10 : 4,e = document.body.currentStyle,d = document.defaultView;
            if (e)
            {
                b = a ? e.marginLeft : e.marginTop
            }
            else if (d)
            {
                b =
                a ? d.getComputedStyle(document.body, "").marginLeft : d.getComputedStyle(document.body, "").marginTop
            }
            b = parseInt(b, 10);
            return b >= 0 && b < c ? c - b : 1
        };
        function n(a, b, c)
        {
            var e = window.location.search.substring(1),d = e.match("q=([^&]*)"),f = e.match("near=([^&]*)"),g = c + (
                    c.match("[?]") ? "&" : "?");
            g += "tab=" + a + b;
            if (j(b) && window.location.protocol == "https:")
            {
                g = g.replace("http:", "https:")
            }
            if (!j(b) && !j(a))
            {
                for (var k = 0; k < m.length; k++)
                {
                    var l = e.match("(" + m[k] + ")=([^&]*)");
                    if (l)
                    {
                        g += "&" + l[1] + "=" + i(l[2])
                    }
                }
                if (d && f && a == "l" && b != "l")
                {
                    g += "&q=" + i(d[1]) + "+" + i(f[0])
                }
                else if (d)
                {
                    g += "&q=" + i(d[1])
                }
            }
            return g
        }
        h.toggle = function(a)
        {
            h.stopB(a);
            var b = document.getElementById("gbardd"),c = document.getElementById("gbarif");
            if (b && c)
            {
                b.style.display = b.style.display == "block" ? "none" : "block";
                c.width = b.offsetWidth;
                c.height = b.offsetHeight;
                c.style.display = b.style.display
            }
            return false
        };
        h.close = function(a)
        {
            var b = document.getElementById("gbardd");
            if (b && b.style.display == "block")
            {
                h.toggle(a)
            }
        };
        h.stopB = function(a)
        {
            if (!a)
            {
                a = window.event
            }
            a.cancelBubble = true
        };
        o(document, "click", h.close);
    })();</script>
</head>
<body>
<div id=gbarl></div>
<div height=1 id=gbarc width=100%><img alt='' height=1 id=gbari width=1></div>
<div id=gbar></div>
<script>document.getElementById('gbarc').style.height =
        (document.getElementById('gbari').height = window.gbar.getPad()) + 'px';
document.getElementById('gbar').innerHTML =
window.gbar.getHtml([['w','Web','',1],['i','Images','http://images.google.com/imghp',1],['v','Video','http://video.google.com/',1],['n','News','http://news.google.com/nwshp',1],['l','Maps','http://maps.google.com/maps',1],['m','Mail','http://mail.google.com/mail',1],['','more','#',3],['b','Blog Search','http://blogsearch.google.com/',2],['j','Blogger','http://www.blogger.com/',2],['p','Books','http://books.google.com/bkshp',2],['c','Calendar','http://www.google.com/calendar',2],['o','Documents','http://docs.google.com/',2],['e','Finance','http://finance.google.com/finance',2],['g','Groups','http://groups.google.com/grphp',2],['z','Labs','http://labs.google.com/',2],['0','Orkut','http://www.orkut.com/',2],['t','Patents','http://www.google.com/ptshp',2],['q','Photos','http://picasaweb.google.com/home',2],['f','Products','http://www.google.com/prdhp',2],['y','Reader','http://www.google.com/reader',2],['s','Scholar','http://scholar.google.com/schhp',2]]);</script>
<noscript>
    <div id=gbarl></div>
    <div id=gbar>
        <table style=margin-left:2px border=0 cellpadding=0 cellspacing=0>
            <tr>
                <td><a href=/webhp>Web</a>
                <td><a href=/imghp>Images</a>
                <td><a href=http://video.google.com/>Video</a>
                <td><a href=/nwshp>News</a>
                <td><a href=/maphp>Maps</a>
                <td><a href=http://mail.google.com/?ui=html>Mail</a>
                <td><a href=/options style=text-decoration:none><u>more</u> &raquo;</a>
        </table>
    </div>
</noscript>
<div align=right>
    <div align=right id=guser style="font-size:84%;padding-bottom:4px" width=100%>
        <nobr><b>bonstio@gmail.com</b>&nbsp;|&nbsp;<a href="/url?sa=p&pref=ig&pval=1&q=/webhp">Classic Home</a>&nbsp;|&nbsp;<a href="http://www.google.com/searchhistory/?hl=en">Web History</a>&nbsp;|&nbsp;<a href="https://www.google.com/accounts/ManageAccount">My Account</a>&nbsp;|&nbsp;<a href="/ig/logout?continue=http://www.google.com/ig">Sign out</a>
        </nobr>
    </div>
</div>
<script>_IG_DD_init();</script>
<div id="doc3">
<div id="nhdrwrap">
    <div id="nhdrwrapinner">
        <div id="nhdrwrapsizer">
            <div id="gsea">
                <form id="sfrm" name="f" method="get" action="/search">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td valign="top" class="gsealog">
                                <div id="regular_logo">&nbsp;</div>
                            </td>
                            <td align="center" class="gseain" valign="top" nowrap>
                                <input type="hidden" name="source" value="ig"><input type="hidden" name="hl" id="hl" value="en"><br><input type="text" name="q" id="q" size="55" maxlength="2048" value=""><br><input type="submit" value="Google Search" name="btnG" id="btnG"><input type="submit" value="I'm Feeling Lucky" name="btnI" id="btnI"><br>
                            </td>
                            <td valign="top"><br>

                                <p class="gseaopt">
                                    <a href="/advanced_search?hl=en">Advanced Search</a><br><a href="/preferences?hl=en">Preferences</a><br><a href="/language_tools?hl=en">Language Tools</a>
                                </p></td>
                        </tr>
                        <tr>
                            <td align="center" colspan=3></td>
                        </tr>
                    </table>
                </form>
            </div>
            <script>_gel('sfrm').onsubmit = function()
            {
                _log('search');
                return true;
            }</script>
            <script>function qs(el)
            {
                if (window.RegExp && window.encodeURIComponent)
                {
                    var qe = encodeURIComponent(document.f.q.value);
                    if (el.href.indexOf("q=") != -1)
                    {
                        el.href = el.href.replace(new RegExp("q=[^&$]*"), "q=" + qe);
                    }
                    else
                    {
                        el.href += "&q=" + qe;
                    }
                }
                return 1;
            }
            if (document.all)
            {
                _IG_AddDOMEventHandler(window, "focus", function()
                {
                    _gel("q").focus();
                    _IG_RemoveDOMEventHandler(window, "focus", arguments.callee);
                });
            }
            else
            {
                _gel("q").focus();
            }</script>
            <div id="undel_msg" class="msg" style="display:none;">
                <div id="undel_box" class="msg_box"><span id="undel_title"></span> has been removed.
                    <a href="javascript:void(_undel())">Undo</a> |
                    <a href="#" class="delbox_u" onclick="_gel('undel_msg').style.display='none';return false;">Close</a>
                </div>
            </div>
            <noscript>
                <div id="noscript_msg" class="msg">
                    <div id="noscript_box" class="msg_box">You need to have JavaScript enabled to use this page.</div>
                </div>
            </noscript>
            <script>_IG_time.stop("parse_header");</script>
            <div id="new_user_demo" align="center"></div>
            <!-- Copyright 2007 and beyond, Google Inc.  To use gadgets on your own site, visit http://www.google.com/webmasters/gadgets.  To create your own gadgets, visit http://www.google.com/apis/gadgets -->
        </div>
        <div id="tabs">
            <ul>
                <li class="tab spacer">&nbsp;</li>
                <li class="tab unselectedtab_l">&nbsp;</li>
                <li id="tab0_view" class="tab unselectedtab" style="display:block" onclick="_dlsetp('ct=0')">
                    <span id="tab0_view_title" style="float:left;">Home</span></li>
                <li class="tab unselectedtab_r">&nbsp;</li>
                <li class="tab unselectedtab_l">&nbsp;</li>
                <li id="tab1_view" class="tab unselectedtab" style="display:block" onclick="_dlsetp('ct=1')">
                    <span id="tab1_view_title" style="float:left;">News</span></li>
                <li class="tab unselectedtab_r">&nbsp;</li>
                <li class="tab unselectedtab_l">&nbsp;</li>
                <li id="tab2_view" class="tab unselectedtab" style="display:block" onclick="_dlsetp('ct=2')">
                    <span id="tab2_view_title" style="float:left;">Analytics</span></li>
                <li class="tab unselectedtab_r">&nbsp;</li>
                <li class="tab unselectedtab_l">&nbsp;</li>
                <li id="tab3_view" class="tab unselectedtab" style="display:block" onclick="_dlsetp('ct=3')">
                    <span id="tab3_view_title" style="float:left;">Media</span></li>
                <li class="tab unselectedtab_r">&nbsp;</li>
                <li class="tab unselectedtab_l">&nbsp;</li>
                <li id="tab5_view" class="tab unselectedtab" style="display:block" onclick="_dlsetp('ct=5')">
                    <span id="tab5_view_title" style="float:left;">Test</span></li>
                <li class="tab unselectedtab_r">&nbsp;</li>
                <li class="tab unselectedtab_l">&nbsp;</li>
                <li id="tab6_view" class="tab unselectedtab" style="display:block" onclick="_dlsetp('ct=6')">
                    <span id="tab6_view_title" style="float:left;">Test2</span></li>
                <li class="tab unselectedtab_r">&nbsp;</li>
                <li class="tab unselectedtab_l">&nbsp;</li>
                <li id="tab7_view" class="tab unselectedtab" style="display:block" onclick="_dlsetp('ct=7')">
                    <span id="tab7_view_title" style="float:left;">Simon&#39;s gadget</span></li>
                <li class="tab unselectedtab_r">&nbsp;</li>
                <li class="tab selectedtab_l">&nbsp;</li>
                <li id="tab8_edit" class="tab edittab selectedtab" style="display:none" onclick="_gel('tab8_title').focus();" onmouseover="_disable_onblur=true;" onmouseout="_disable_onblur=false;">
                    <script>_disable_onblur = false;</script>
                    <form id="tab8_rename_form" name="tab8_rename_form" onsubmit="return _renameTab();">
                        <span><input id="tab8_title" name="tab_title" value="Main" onblur="_disable_onblur ? void(0) : _renameTab();"></span><a href="#" onclick="if (confirm('Are you sure you want to delete the \&quot;TAB_NAME\&quot; tab and all of its contents?'.replace('TAB_NAME', _editedTabName()))) {_dlsetp('dt=8');}return false;">delete</a>
                    </form>
                </li>
                <li id="tab8_view" class="tab selectedtab" style="display:block" onclick="_editTab('8')" title="Click to rename or delete.">
                    <span id="tab8_view_title" style="float:left;">Main</span></li>
                <li class="tab selectedtab_r">&nbsp;</li>
                <li class="tab addtab">&nbsp;&nbsp;
                    <script src="/ig/ig_popup.js"></script>
                    <script>function _mtabs_send()
                    {
                        var url = "/ig/filltab?et=Wl2JmYh0&igtab=";
                        url += _esc(_gel("mtab").value);
                        url += "&filltab=";
                        if (_gel("mfill").checked)
                        {
                            url += "1";
                        }
                        else
                        {
                            url += "0";
                        }
                        url += "&url=" + _esc(document.location);
                        document.location = url;
                        return false;
                    }
                    function _replace_div(name)
                    {
                        var oldDiv = _gel(name);
                        var newDiv = _gel("replace");
                        if (!newDiv)
                        {
                            newDiv = document.createElement("div");
                            newDiv.id = "replace";
                            newDiv.style.display = "none";
                            oldDiv.parentNode.appendChild(newDiv);
                        }
                        newDiv.style.width = "" + oldDiv.clientWidth + "px";
                        newDiv.style.height = "" + Math.max(oldDiv.offsetHeight, oldDiv.scrollHeight) + "px";
                        newDiv.style.backgroundColor = "#fff";
                        _toggle(oldDiv);
                        _toggle(newDiv);
                    }
                    function _close_mtabs_dialog()
                    {
                        _toggle(_gel("replace"));
                        _toggle(_gel("modules"));
                        return true;
                    }
                    function _open_mtabs_dialog()
                    {
                        _replace_div("modules");
                        var titleHtml = "\x3ctable id\x3d\"mtabs_title\" width\x3d\"100%\"\x3e\x3ctr\x3e\x3ctd\x3e\x3cstrong\x3eAdd a tab\x3c/strong\x3e\x3c/td\x3e\x3ctd align\x3d\"right\"\x3e\x3cinput type\x3d\"image\" src\x3d\"/ig/images/x_blue.gif\" onclick\x3d\"_close_mtabs_dialog(); _CloseDialog(2); return true;\" /\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e";
                        var bodyHtml = "\x3ctable id\x3d\"mtabs_body\"\x3e\x3ctr\x3e\x3ctd style\x3d\"white-space:nowrap\"\x3e\x3cfont size\x3d\"-1\"\x3eTab name:\x3c/font\x3e\x3c/td\x3e\x3ctd\x3e\x3cform onsubmit\x3d\"_mtabs_send(); return false;\"\x3e\x3cfont size\x3d\"-1\"\x3e\x3cinput id\x3d\"mtab\" type\x3d\"text\" name\x3d\"tab\" size\x3d\"40\" /\x3e\x3c/font\x3e\x3c/form\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cfont size\x3d\"-1\"\x3e\x3c/font\x3e\x3c/td\x3e\x3ctd\x3e\x3cfont size\x3d\"-2\" color\x3d\"#676767\"\x3ee.g. News, Finance, Sports\x3c/font\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d\"2\"\x3e\x26nbsp;\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd colspan\x3d\"2\"\x3e\x3cfont size\x3d\"-1\"\x3e\x3cinput name\x3d\"fill\" id\x3d\"mfill\" type\x3d\"checkbox\" checked /\x3e\x3clabel for\x3d\"mfill\"\x3eI\x26#39;m feeling lucky. Automatically add stuff based on the tab name.\x3c/label\x3e\x3c/font\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e";
                        var buttonsHtml = ["<input type=\"button\" onclick=\"return _mtabs_send();\""
                                + " style=\"font-weight:bold; width:100px\" value=\"OK\" />","<input type=\"button\" onclick=\"return _close_mtabs_dialog();\""
                                + " style=\"width:100px\" value=\"Cancel\" />"];
                        _Confirm(null, titleHtml, bodyHtml, buttonsHtml);
                        _IG_RegisterOnloadHandler(function()
                        {
                            _gel("mtab").focus();
                        });
                        return false;
                    }</script>
                    <a href="#" onclick="return _open_mtabs_dialog();">Add a tab</a></li>
                <li class="tab" id="addstuff">
                    <span class="new">New!&nbsp;</span><span><a href="javascript:_dlsetp('open_skinbox=', '');">Select theme</a></span>&nbsp;|&nbsp;<a href="http://www.google.com/ig/directory?root=/ig&amp;igtab=Main&amp;dpos=top">Add stuff &raquo;</a>
                </li>
            </ul>
        </div>
    </div>
</div>
<div id="modules">
<div class="yui-b">
<div class="yui-gb" id="t_1">
<div class="yui-u first" id="c_1">
    <div class="dm"></div>
</div>
<div class="yui-u" id="c_2">
<div id="m_18" class="modbox">
<h2 class="modtitle">
    <a class="delbox" href="#" onclick="return _del('18',32,'n_32=url%3Ddeveloper.xml%26up_promo0%3D1%26up_promo1%3D1%26up_version%3D8');"></a><a class="minbox" id="m_18_zippy" href="#" onclick="this.blur();return _zm('18', '32');return false;"></a><a class="ddbox" id="DD_tg_18" href="#" onclick="_IG_DD_open(event,18);return false;"></a>
    <script>_IG_DD_create(18, [["Edit settings","","_edit(18, null)"],["Send to a friend","","_mailWindow(\x26#39;http://www.google.com/ig/mailgadget?moduleurl\x3ddeveloper.xml\x26#39;)"],["You might also like...","http://www.google.com/ig/directory?recommend\x3ddeveloper.xml",""],["About this gadget","http://www.google.com/ig/directory?url\x3ddeveloper.xml",""]]);</script>
    <span class="my_gadget" style="display:none"></span>

    <div id="m_18_h"><span id="m_18_title" class="modtitle_text">My Gadgets</span></div>
    <div class="meditbox">
        <form id="m_18_form" onsubmit="return _fsetp(this,'18',32);">
            <script></script>
            <table border=0 cellpadding=0 cellspacing=0 width=95% align=center>
                <tr>
                    <td colspan=1 align=right width="35%">Color</td>
                    <td colspan=2 nowrap align=left width="65%">&nbsp;<input type="text" size="20" maxlen="200" id=m_18_0 name=m_18_up_color value="#FFcc33">
                    </td>
                </tr>
            </table>
            <table border=0 cellpadding=0 cellspacing=0 width=95% align=center>
                <tr>
                    <td colspan=2 nowrap align=left><br><a href=""><font size=-1 color=#7777cc></font></a></td>
                    <td colspan=1 align=right valign=bottom>
                        <input id=m_18_numfields type=hidden value=4><input id=save_18 class=submitbtn type=submit value="Save"><input type=button value="Cancel" onclick="return _cedit('18')">
                    </td>
                </tr>
            </table>
        </form>
    </div>
</h2>
<div id="m_18_b" class="modboxin">
<script><!--
remote_modules.push(new RemoteModule("developer.xml", "18", "required", "", false));
// -->
</script>
<script><!--
_IG_Prefs._add("18", "up_color", "#FFcc33");
_IG_Prefs._add("18", "up_promo0", "1");
_IG_Prefs._add("18", "up_promo1", "1");
_IG_Prefs._add("18", "up_version", "8");
_IG_Prefs._add("18", "up_.lang", "en");
_IG_Prefs._add("18", "up_.country", "us");
_IG_Prefs._add("18", "up_synd", "ig");
// -->
</script>
<!-- Copyright 2007 and beyond, Google Inc.  To use gadgets on your own site, visit http://www.google.com/webmasters/gadgets.  To create your own gadgets, visit http://www.google.com/apis/gadgets -->
<div id=remote_18 style="border:0;padding:0;margin:0;width:100%;;overflow:hidden;">

<!-- note: the developer gadget is just a normal inlined gadget -->

<!-- /////////////////////// JavaScript Content /////////////////////////// -->

<script>
// Constants
var PROMO_VERSION18 = 8;
var UACCT = "UA-676947-3";

// Global variables
var prefs18 = new _IG_Prefs(18);
var mini18 = new _IG_MiniMessage(18);

// Generate dismissible promotion messages
function createPromoMessages18()
{
    var prefs = prefs18;

    // Reset the promo message to show if versions differ.
    if (prefs.getInt("version") != PROMO_VERSION18)
    {
        prefs.set("promo0", 1, "promo1", 1, "version", PROMO_VERSION18);
    }

    // Create a dismissible promo message announcing new features with link to group update post.
    // User can hide promo by clicking [x].
    if (prefs.getInt("promo1"))
    {
        var html = [
                '<span style="color:#676767;"><span style="font-size:9px;">2007-05-23</span> &raquo; </span>',
                'Updated tabs library: ',
                '<a onclick="onclickPromo18();" href="http://fusion.google.com/add?moduleurl=gadgetbrowser.xml">Example</a>, ',
                '<a onclick="onclickPromo18();" href="http://www.google.com/apis/gadgets/ui.html#Tabs">Documentation</a>'
                ].join("");
        mini18.createDismissibleMessage(html, ondismissPromo18(1));
    }
    if (prefs.getInt("promo0"))
    {
        var html = [
                '<span style="color:#676767;"><span style="font-size:9px;">2007-04-24</span> &raquo; </span>',
                'New features and updates: ',
                '<a onclick="onclickPromo18();" href="http://www.google.com/apis/gadgets/ui.html#Flash">Flash</a>, ',
                '<a onclick="onclickPromo18();" href="http://www.google.com/apis/gadgets/ui.html#Settitle">Set Title</a>, ',
                '<a onclick="onclickPromo18();" href="http://groups.google.com/group/Google-Gadgets-API/browse_thread/thread/76b8248de843ef4f/">Image Caching</a>'
                ].join("");
        mini18.createDismissibleMessage(html, ondismissPromo18(0));
    }

    // Second dismissible promo message.
    // Uncomment below if second promo message is needed.
    //if (prefs.getInt("promo1")) {
    //}
}

// Event handler called when user dismisses promo message.
function ondismissPromo18(index)
{
    return function()
    {
        prefs18.set("promo" + index, 0);
    }
}

// Called when user clicks on promotion message link.
function onclickPromo18()
{

}

// Highlights and UnHighlights gadgets
function Highlighter_18()
{
    this.origBackgroundColor = "";
    this.prefs = prefs18;
    this.highlightColor = this.prefs.getString("color")

    // i: gadget id
    this.highlight = function(i)
    {
        this.origBackgroundColor = _gel("m_" + i + "_h").style.backgroundColor;
        _gel("m_" + i + "_h").parentNode.style.backgroundColor = this.highlightColor;
    }

    // i: gadget id
    this.unhighlight = function(i)
    {
        _gel("m_" + i + "_h").parentNode.style.backgroundColor = this.origBackgroundColor;
    }
}

var Highlighter_18_handle = new Highlighter_18();

function shouldGadgetUrlBeAnchor18(url)
{
    return url.indexOf("http://") == 0 || url.indexOf(":") == -1;
}

// Generates HTML to show your current remote gadgets.  Must be called once
// the page is fully loaded, or not all gadgets will be seen.
function onload18()
{
    // Track pageviews into Google Analytics

    // Create promotion minimessages
    createPromoMessages18();

    var s = "";
    s += "<table><tr><img width=1 height=5><br></tr><tr>";
    s += "<td style='width:100%' valign=bottom><font size=-1>Gadget</font></td>";
    s += "<td valign=bottom><font size=-1>Inlined</font></td>";
    s += "<td valign=bottom><font size=-1>Cached</font></td>";
    s += "</tr>";

    for (var i = 0; i < remote_modules.length; i++)
    {
        var module = remote_modules[i];
        s += "<tr>";

        // Column 1: pretty name, linked to gadget spec.  Extract file name
        // from URL (everything after last "/").
        var url = module.spec_url;
        var pretty_name = module.spec_url;
        // for testing: if (i==0) { pretty_name = "123456789012345678901234567890/"; }
        var last_slash_idx = pretty_name.lastIndexOf("/");
        // internally hosted modules
        if (last_slash_idx < 0)
        {
            url = "/ig/modules/" + pretty_name;
        }
        // if it doesn't end in "/"
        if (last_slash_idx != pretty_name.length - 1)
        {
            pretty_name = pretty_name.substr(last_slash_idx + 1);
        }
        // print long names nicely
        if (pretty_name.length > 20)
        {
            pretty_name = pretty_name.substring(0, 4) + "..." + pretty_name.substr(pretty_name.length - 10);
        }
        // Don't display links if they are not "safe" URLs.
        if (!shouldGadgetUrlBeAnchor18(url))
        {
            url = "";
        }
        s += "<td><font size=-1><a href='" + _hesc(url) + "' onmouseover=\"Highlighter_18_handle.highlight(" + module.id
                + ");\" " + "onmouseout=\"Highlighter_18_handle.unhighlight(" + module.id + ");\">" + _hesc(pretty_name)
                + "</a></td>";

        // Column 2: force inline.  Note: module.id is the id of the gadget being
        // edited.  18 is id of the developer gadget itself, to prevent
        // name conflicts.
        s += "<td align=center><font size=-1><input type=checkbox  " + "onclick='inlinecallback18(" + module.id
                + ", checked)' " + (module.is_inlined() ? "checked " : " ") + ((module.render_inline == "optional") ?
                                                                               " " : "disabled ") + "></td>";

        // Column 3: override cache.
        s += "<td align=center><font size=-1><input type=checkbox " + "onclick='cachecallback18(" + module.id
                + ", checked)' " + (module.caching_disabled ? " " : "checked ") + "></td>";

        s += "</tr>";
    }
    s += "</table>";

    var div = _gel("div18");
    div.innerHTML = s;
}
// after all gadgets have been rendered, then call this function
_IG_RegisterOnloadHandler(onload18);

// Forces the inline of a gadget.
// module_id: module id to change
// value: boolean
function inlinecallback18(module_id, checked)
{
    // If user is trying to inline gadget, show confirmation box.  If they
    // say no, make sure checkbox is unchecked.
    var msg = "Are you sure you want to inline this gadget?  An inlined gadget "
            + "can alter other parts of the page, and could give its author "
            + "access to information including your Google cookies and "
            + "preference settings for other gadgets.  Only click 'OK' " + "below if you trust this gadget's author.";
    if (checked && !confirm(msg))
    {
        checked = false;
    }

    _dlsetp("m_" + module_id + "_inline=" + checked);
}

// Disables the caching of a gadget.
// module_id: module id to change
// checked: boolean
function cachecallback18(module_id, checked)
{
    var value = 0;
    if (!checked)
    {
        // if cache box unchecked, record current time
        value = (new Date()).getTime();
    }
    _dlsetp("m_" + module_id + "_nocache=" + value);
}

// Adds a gadget
function onsubmit18()
{
    // Show search progress.
    _gel("searching18").style.display = "";

    var url = _gel("text18").value;
    // This call ensures that users are prompted before adding untrusted
    // gadgets, and warned when the gadget doesn't exist.
    _add_remote_module(url, onsubmit18callback);
    return false;
}

// _add_remote_module() actually adds the gadget, but we need to toggle
// the search status.
function onsubmit18callback()
{
    _gel("searching18").style.display = "none";
}
</script>

<!-- ///////////////////////////// HTML Content /////////////////////////// -->
<!-- Placeholder for dynamically generated table of gadget contents. -->
<div id=div18></div>

<!-- Form for users to input gadget URLs. -->
<br>

<form onsubmit="return onsubmit18()">
    <table>
        <tr>
            <td><font size=-1>Add a gadget:</font></td>
            <td></td>
        </tr>
        <tr>
            <td style='width:100%'>
                <font size=-1>
                    <input type=text style='width:100%' value="http://" id="text18">
                </font>
            </td>
            <td>
                <font size=-1>
                    <input type=submit value="Add">
                </font>
            </td>
        </tr>
    </table>
    <div id=searching18 style="display:none">
        <font size=-1><i>Loading gadget...</i></font>
    </div>
</form>
</div>
</div>
</div>
<div class="dm"></div>
</div>
<div class="yui-u" id="c_3">
<div id="m_61" class="modbox">
<h2 class="modtitle">
    <a class="delbox" href="#" onclick="return _del('61',32,'n_32=url%3Dhttp://myearnings.googlecode.com/svn/trunk/MyEarnings.xml%26up_salaryH%3D20000%26up_salary%3D********%26up_timerPaused%3D1%26up_timerStart%3D6422');"></a><a class="minbox" id="m_61_zippy" href="#" onclick="this.blur();return _zm('61', '32');return false;"></a><a class="ddbox" id="DD_tg_61" href="#" onclick="_IG_DD_open(event,61);return false;"></a>
    <script>_IG_DD_create(61, [["Edit settings","","_edit(61, null)"],["Send to a friend","","_mailWindow(\x26#39;http://www.google.com/ig/mailgadget?moduleurl\x3dhttp://myearnings.googlecode.com/svn/trunk/MyEarnings.xml\x26#39;)"],["You might also like...","http://www.google.com/ig/directory?recommend\x3dhttp://myearnings.googlecode.com/svn/trunk/MyEarnings.xml",""],["About this gadget","http://www.google.com/ig/directory?url\x3dhttp://myearnings.googlecode.com/svn/trunk/MyEarnings.xml",""]]);</script>
    <span class="my_gadget" style="display:none"></span>

    <div id="m_61_h">
        <a class="mtlink" id="m_61_url" href="http://bonstio.net/timer"><span id="m_61_title" class="modtitle_text">My Earnings</span></a>
    </div>
    <div class="meditbox">
        <form id="m_61_form" onsubmit="return _fsetp(this,'61',32);">
            <script></script>
            <table border=0 cellpadding=0 cellspacing=0 width=95% align=center>
                <tr>
                    <td colspan=1 align=right width="35%">Gadget title</td>
                    <td colspan=2 nowrap align=left width="65%">&nbsp;<input type="text" size="20" maxlen="200" id=m_61_0 name=m_61_up_title value="My Earnings">
                    </td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Timer name</td>
                    <td colspan=2 nowrap align=left width="65%">&nbsp;<input type="text" size="20" maxlen="200" id=m_61_1 name=m_61_up_breakName value="bathroom break">
                    </td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Currency symbol</td>
                    <td colspan=2 nowrap align=left width="65%">&nbsp;<input type="text" size="20" maxlen="200" id=m_61_2 name=m_61_up_currencySymbol value="$">
                    </td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Salary</td>
                    <td colspan=2 nowrap align=left width="65%">&nbsp;<input type="text" size="20" maxlen="200" id=m_61_3 name=m_61_up_salary value="********">
                    </td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Start time</td>
                    <td colspan=2 nowrap align=left width="65%">&nbsp;<input type="text" size="20" maxlen="200" id=m_61_4 name=m_61_up_startTime value="09:00">
                    </td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">End time</td>
                    <td colspan=2 nowrap align=left width="65%">&nbsp;<input type="text" size="20" maxlen="200" id=m_61_5 name=m_61_up_endTime value="17:00">
                    </td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Lunch duration</td>
                    <td colspan=2 nowrap align=left width="65%">&nbsp;<input type="text" size="20" maxlen="200" id=m_61_6 name=m_61_up_lunchTime value="1:00">
                    </td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Tax rate</td>
                    <td colspan=2 nowrap align=left width="65%">&nbsp;<input type="text" size="20" maxlen="200" id=m_61_7 name=m_61_up_taxRate value="">
                    </td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Clock tick interval</td>
                    <td colspan=2 nowrap align=left width="65%">&nbsp;<select id=m_61_8 name=m_61_up_clockTickInterval style="width:95%;">
                        <option SELECTED value="0">Minutes
                        <option value="1">Seconds
                        <option value="2">Hundredths of seconds
                    </select></td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Timer tick interval</td>
                    <td colspan=2 nowrap align=left width="65%">&nbsp;<select id=m_61_9 name=m_61_up_timerTickInterval style="width:95%;">
                        <option value="0">Minutes
                        <option SELECTED value="1">Seconds
                        <option value="2">Hundredths of seconds
                    </select></td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Display clock</td>
                    <td colspan=2 nowrap align=left width="65%">
                        <input type=hidden id=m_61_10 name=m_61_up_showClock value=1><input type=checkbox CHECKED onClick="_gel('m_61_10').value = this.checked ? '1' : '0';">
                    </td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Use 24h clock</td>
                    <td colspan=2 nowrap align=left width="65%">
                        <input type=hidden id=m_61_11 name=m_61_up_is24h value=0><input type=checkbox onClick="_gel('m_61_11').value = this.checked ? '1' : '0';">
                    </td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Show horizontal rule</td>
                    <td colspan=2 nowrap align=left width="65%">
                        <input type=hidden id=m_61_12 name=m_61_up_showRule value=1><input type=checkbox CHECKED onClick="_gel('m_61_12').value = this.checked ? '1' : '0';">
                    </td>
                </tr>
                <tr>
                    <td colspan=1 align=right width="35%">Confirm reset</td>
                    <td colspan=2 nowrap align=left width="65%">
                        <input type=hidden id=m_61_13 name=m_61_up_confirmReset value=1><input type=checkbox CHECKED onClick="_gel('m_61_13').value = this.checked ? '1' : '0';">
                    </td>
                </tr>
            </table>
            <table border=0 cellpadding=0 cellspacing=0 width=95% align=center>
                <tr>
                    <td colspan=2 nowrap align=left><br><a href=""><font size=-1 color=#7777cc></font></a></td>
                    <td colspan=1 align=right valign=bottom>
                        <input id=m_61_numfields type=hidden value=19><input id=save_61 class=submitbtn type=submit value="Save"><input type=button value="Cancel" onclick="return _cedit('61')">
                    </td>
                </tr>
            </table>
        </form>
    </div>
</h2>
<div id="m_61_b" class="modboxin">
<script><!--
remote_modules.push(new RemoteModule("http://myearnings.googlecode.com/svn/trunk/MyEarnings.xml", "61", "required", "", true));
// -->
</script>
<script><!--
_IG_Prefs._add("61", "up_title", "My Earnings");
_IG_Prefs._add("61", "up_breakName", "bathroom break");
_IG_Prefs._add("61", "up_currencySymbol", "$");
_IG_Prefs._add("61", "up_salary", "********");
_IG_Prefs._add("61", "up_startTime", "09:00");
_IG_Prefs._add("61", "up_endTime", "17:00");
_IG_Prefs._add("61", "up_lunchTime", "1:00");
_IG_Prefs._add("61", "up_taxRate", "");
_IG_Prefs._add("61", "up_clockTickInterval", "0");
_IG_Prefs._add("61", "up_timerTickInterval", "1");
_IG_Prefs._add("61", "up_showClock", "1");
_IG_Prefs._add("61", "up_is24h", "0");
_IG_Prefs._add("61", "up_showRule", "1");
_IG_Prefs._add("61", "up_confirmReset", "1");
_IG_Prefs._add("61", "up_timerPaused", "1");
_IG_Prefs._add("61", "up_timerStart", "6422");
_IG_Prefs._add("61", "up_salaryH", "20000");
_IG_Prefs._add("61", "up_showTimer", "1");
_IG_Prefs._add("61", "up_showToday", "1");
_IG_Prefs._add("61", "up_.lang", "en");
_IG_Prefs._add("61", "up_.country", "us");
_IG_Prefs._add("61", "up_synd", "ig");
// -->
</script>
<!-- Copyright 2007 and beyond, Google Inc.  To use gadgets on your own site, visit http://www.google.com/webmasters/gadgets.  To create your own gadgets, visit http://www.google.com/apis/gadgets -->
<div id=remote_61 style="border:0;padding:0;margin:0;width:100%;;overflow:hidden;">
<div class="modtitle" style="background: white; border: 0px; ">
    <div id="clockHolder61" style="text-align:center; display:none; ">

        <span id="clock61" style="font-weight:bold;font-size:200%;">&nbsp;</span>
        <br/>
        <span id="toggleTimer61" style="font-size:75%; position:relative; left:0px; text-align:left; cursor:pointer;">Hide earnings</span>
    </div>

    <div id="timerHolder61" style="text-align:center; font-size:90%;">
        <hr id="hrule61" style="height:1px; border-top:0px; display:none;"/>

        <span id="timer61" style="font-weight:bold;"></span>

        <div id="earningsHolder61" style="text-align:center;">
            <h3>
                <span id="earnings61"></span><br/>
                <span id="today61"></span>
            </h3>
            <button id="startStop61" style="width:65px;">Start</button>
            &nbsp;
            <button id="reset61" style="width:65px;">Reset</button>
        </div>
    </div>

</div>
<script>

function MyEarnings61()
{
    this.prefs = new _IG_Prefs(61);
    this.timerPaused = this.prefs.getBool("timerPaused");
    this.timerStart = this.prefs.getString("timerStart");

    this.timerTickIntervals = [60000, 1000, 60];

    this.showClock = this.prefs.getBool("showClock");
    this.is24h = this.prefs.getBool("is24h");

    this.clockTickInterval = this.timerTickIntervals[this.prefs.getInt("clockTickInterval")];
    this.timerTickInterval = this.timerTickIntervals[this.prefs.getInt("timerTickInterval")];

    this.startTime = this.prefs.getString("startTime");
    this.endTime = this.prefs.getString("endTime");
    this.lunchTime = this.prefs.getString("lunchTime");
    this.breakName = this.prefs.getString("breakName");
    this.confirmReset = this.prefs.getString("confirmReset");
    this.currencySymbol = this.prefs.getString("currencySymbol").substring(0, 1);

    this.showTimer = this.prefs.getString("showTimer");
    this.showToday = this.prefs.getString("showToday");

    this.startText = "Start";
    this.pauseText = "Pause";
    this.resumeText = "Resume";

    this.taxRate = this.prefs.getString("taxRate");
    var salaryH = this.prefs.getInt("salaryH");
    this.salary = this.prefs.getInt("salary");

    if (this.salary != 0)
    {
        if (this.salary != salaryH)
        {
            this.prefs.set("salaryH", this.salary);
        }
    }
    else
    {
        this.salary = salaryH;
    }
    this.prefs.set("salary", "********");

    this.dayMillis = 0;
    this.dailyRate = 0;
    this.workTicks = 0;

    this.initdayMillis();

    this.timerDiv = _gel("timer61");
    this.earningsDiv = _gel("earnings61");
    this.clockDiv = _gel("clock61");
    this.startStopDiv = _gel("startStop61");
    this.resetDiv = _gel("reset61");
    this.todayDiv = _gel("today61");
}

MyEarnings61.prototype.createMethodReference = function(object, methodName)
{
    return function ()
    {
        object[methodName].apply(object, arguments);
    };
}

MyEarnings61.prototype.main = function()
{
    _gel("startStop61").onclick = this.createMethodReference(this, "startTimer");
    _gel("reset61").onclick = this.createMethodReference(this, "resetTimer");
    _gel("toggleTimer61").onclick = this.createMethodReference(this, "toggleTimer");

    _gel("hrule61").style.display = this.prefs.getString("showRule") == 1 ? "" : "none";
    _gel("timerHolder61").style.display = this.showTimer == 1 ? "" : "none";
    _gel("toggleTimer61").innerHTML = (this.showTimer == 1 ? "Hide" : "Show") + " earnings";

    if (this.showClock)
    {
        _gel("clockHolder61").style.display = "";
        this.tickClock();
    }
    this.tickTimer();
}

MyEarnings61.prototype.readTime = function(aTime, isDuration)
{
    var aDate = new Date();
    if (isDuration)
    {
        aDate.setTime(0);
    }
    var hM = aTime.split(":");
    aDate.setHours(hM[0]);
    aDate.setMinutes(hM[1])
    return aDate;
}

MyEarnings61.prototype.initdayMillis = function()
{
    this.startTime = this.readTime(this.startTime);
    this.endTime = this.readTime(this.endTime);
    this.lunchTime = this.readTime(this.lunchTime, true);

    this.dailyRate = this.tax(this.salary) / (12 * ((5 / 7) * 365) / 12);
    this.workTicks = this.endTime.getTime() - (this.startTime.getTime() + this.lunchTime.getTime());
}

MyEarnings61.prototype.tickTimer = function()
{
    var now = new Date();
    var duration = 0;
    this.todayDiv.innerHTML = this.getDailyEarnings(now);

    //if timer stopped or paused
    if ((this.timerStart == "") || (this.timerPaused))
    {
        duration = this.getTimeSince(now.getTime() - this.timerStart);
        this.startStopDiv.innerHTML = this.timerPaused ? this.resumeText : this.startText;
        this.timerDiv.innerHTML = this.formatTime(duration, false);
        this.earningsDiv.innerHTML = this.getTimerEarnings(duration);
    }
    else
    {
        this.startStopDiv.innerHTML = this.pauseText;
        duration = this.getTimeSince(this.timerStart);
    }

    this.earningsDiv.innerHTML = this.getTimerEarnings(duration);
    this.timerDiv.innerHTML = this.formatTime(duration, false);

    setTimeout("gadget61.tickTimer()", this.timerTickInterval);
}

MyEarnings61.prototype.tickClock = function()
{
    var now = new Date();
    this.clockDiv.innerHTML = this.formatTime(now, true);
    setTimeout("gadget61.tickClock()", this.clockTickInterval);
}

MyEarnings61.prototype.formatTime = function (aDate, isClock)
{
    var hrs = aDate.getHours();
    var min = aDate.getMinutes();

    var sec = "";
    var showSec =
            (isClock && (this.clockTickInterval <= this.timerTickIntervals[1])) || (!isClock && (this.timerTickInterval
                    <= this.timerTickIntervals[1])) ? true : false;
    if (showSec)
    {
        sec = aDate.getSeconds();
        if (sec < 10)
        {
            sec = "0" + sec;
        }
        if (isClock)
        {
            sec = ":" + sec + " ";
        }
        else
        {
            sec += "s ";
        }
    }

    var mil = "";
    var showMils =
            (isClock && (this.clockTickInterval == this.timerTickIntervals[2])) || (!isClock && (this.timerTickInterval
                    == this.timerTickIntervals[2])) ? true : false;
    if (showMils)
    {
        mil = aDate.getMilliseconds();
        mil = "" + mil;
        mil = mil.substring(0, 2);
        if (mil < 10)
        {
            mil = "0" + mil;
        }
    }

    var don = "";
    if (!this.is24h)
    {
        if (isClock)
        {
            don = " AM";
            if (hrs >= 12)
            {
                don = " PM";
            }
            if (hrs > 12)
            {
                hrs -= 12;
            }
            if (hrs == 0)
            {
                hrs = 12;
            }
        }
    }
    else
    {
        if (hrs < 10)
        {
            hrs = "0" + hrs;
        }
    }

    if (min < 10)
    {
        min = "0" + min;
    }

    if (isClock)
    //format clock
    {
        return hrs + ":" + min + sec + mil + " " + don;
    }
    else
    //format timer
    {
        return hrs + "h " + min + "m " + sec + mil + " " + don;
    }
}

MyEarnings61.prototype.resetTimer = function()
{
    this.resetDiv.blur();
    if (this.confirmReset)
    {
        if (!confirm("Are you sure you want to reset this timer?"))
        {
            return;
        }
    }
    this.timerStart = "";
    this.prefs.set("timerStart", this.timerStart);

    var duration = this.getTimeSince(new Date().getTime() - this.timerStart);
    this.startStopDiv.innerHTML = this.timerPaused ? this.resumeText : this.startText;
    this.timerDiv.innerHTML = this.formatTime(duration, false);
    this.earningsDiv.innerHTML = this.getTimerEarnings(duration);

    this.timerPaused = false;
    this.prefs.set("timerPaused", this.timerPaused ? "1" : "0");

}

MyEarnings61.prototype.getTimeSince = function(timerStart)
{
    var ticks;

    if (timerStart == "")
    {
        ticks = 0;
    }
    else
    {
        ticks = new Date().getTime() - timerStart;
    }

    return new Date(ticks);
}

MyEarnings61.prototype.startTimer = function()
{
    var startTime;

    if ((this.timerPaused) || (this.timerStart == ""))
    //start / resume
    {
        if (this.timerPaused)
        {
            this.timerStart = new Date().getTime() - this.timerStart;
        }

        this.timerPaused = false;
        if (this.timerStart == "")
        {
            this.timerStart = new Date().getTime();
        }
    }
    else
    //stop / pause
    {
        this.timerPaused = true;
        //put timer time into timerStarted
        this.timerStart = this.getTimeSince(this.timerStart).getTime();
    }

    this.prefs.set("timerPaused", this.timerPaused ? "1" : "0");
    this.prefs.set("timerStart", this.timerStart);
    this.tickTimer();
    this.startStopDiv.innerHTML = (!this.timerPaused) ? this.pauseText : this.resumeText;
}

MyEarnings61.prototype.getEarnings = function(duration)
{
    return ((duration.getTime() * this.dailyRate) / this.workTicks).toFixed(2);
}

MyEarnings61.prototype.getTimerEarnings = function(duration)
{
    return  "Your " + this.breakName + " has earned you " + this.currencySymbol + this.getEarnings(duration);
}

MyEarnings61.prototype.getDailyEarnings = function(now)
{
    duration = this.getTimeSince(this.startTime);
    if (now.getTime() > this.endTime.getTime())
    {
        return "Today you earned " + this.currencySymbol + this.dailyRate.toFixed(2);
    }
    else if (now.getTime() < this.startTime.getTime())
    {
        return "You have yet to earn anything today!";
    }
    else
    {
        return "So far today, you have earned " + this.currencySymbol + this.getEarnings(duration);
    }
}

MyEarnings61.prototype.tax = function(amount)
{

    //flat user specified tax rate
    if (this.taxRate != "")
    {
        return amount * (1 - this.taxRate);
    }

    //Under 65 yr old personal allowance
    //var pa1=4745;	2004-05	
    //var pa1=4895;	2005-06	
    //var pa1=5035;	2006-07	
    var pa1 = 5225;
    //	2007-08		

    //Income Tax Rates
    var tax1 = 0.1;
    var tax3 = 0.22;
    var tax4 = 0.4;

    //Income Tax Bands
    //var band1=2020;	2004-05
    //var band1=2090;	2005-06
    //var band1=2150;	2006-07  
    var band1 = 2230;
    //  2007-08

    //var band2=31400;	2004-05	
    //var band2=32400;	2005-06
    //var band2=33300;	2006-07
    var band2 = 34600;
    //  2007-08

    var taxable = 0;
    var tax = -1000;
    var net = 0;

    var ni = 0;
    var niadd = 0.01;
    //extra ni for earnings > uel

    //LEL for NI
    //var nilower=4745; 	2004-05
    //var nilower=4895;	2005-06
    //var nilower=5035;	2006-07
    var nilower = 5225;
    // 2007-08

    //UEL for NI  
    //var niupper=31720;	2004-05
    //var niupper=32760;	2005-06
    //var niupper=33540;	2006-07
    var niupper = 34840;
    // 2007-08

    var ci = 0.11;
    var co = 0.094;
    var extni = 0;

    earnings = amount


    //  <!** START SINGLE PERSON UNDER 65 **!>

    if (earnings < pa1)
    {
        tax = 0;
        net = earnings;
    }
    else if (earnings <= (pa1 + band1))
    {
        var taxable = earnings - pa1;
        tax = Math.round(taxable * tax1);
        net = earnings - tax;
    }
    else if (earnings <= (pa1 + band2))
    {
        var taxable = earnings - (pa1 + band1);
        tax = Math.round((taxable * tax3) + (band1 * tax1));
        net = earnings - tax;
    }
    else
    {
        var taxable = earnings - (pa1 + band2);
        tax = Math.round((taxable * tax4) + ((band1 * tax1) + ((band2 - band1) * tax3)));
        net = earnings - tax;
    }

    // <!** TIDY RESULTS - SOMETIMES THE RESULTS GET MUNGED **!>
    net = parseFloat(net);
    tax = parseFloat(tax);

    // <!** DETECT NEGATIVE TAX VALUES **!>
    if (tax <= 0)
    {
        net = earnings;
        tax = 0;
    }

    // <!** IN OR OUT OF SERPS? **!>
    var inserps = true;
    var nirate = (inserps) ? ci : co ;

    // <!** CALCULATE NATIONAL INSURANCE CONTRIBUTIONS **!>
    // <!** START CONTRACTED IN EMPLOYEE **!>
    if (earnings < nilower)
    {
        ni = 0;
    }
    else
    {
        if (earnings > niupper)
        {
            ni = (niupper - nilower) * nirate;
            extni = (earnings - niupper) * niadd;
            ni += extni;
        }
        else
        {
            ni = nirate * (earnings - nilower);
        }
    }
    // <!** END CONTRACTED IN EMPLOYEE **!>

    // <!** REFORMAT DATA AND DEDUCT NI CONTRIBUTIONS IF ANY **!>
    if (ni > 0)
    {
        net -= ni;
    }

    return value = Math.round(net);
}

MyEarnings61.prototype.toggleTimer = function()
{

    this.showTimer = this.showTimer == 0 ? 1 : 0;
    this.prefs.set("showTimer", this.showTimer);

    _gel("toggleTimer61").innerHTML = (this.showTimer == 1 ? "Hide" : "Show") + " earnings";
    _gel("timerHolder61").style.display = this.showTimer == 1 ? "" : "none";

}

_IG_RegisterOnloadHandler(function()
{
    gadget61 = new MyEarnings61;
    gadget61.main();
});
</script>

</div>
</div>
</div>
<div class="dm"></div>
</div>
<div class="dm c">&nbsp;</div>
</div>
</div>
</div>
</div>
<div id="footerwrap">
    <div id="footerwrapinner"><p id="footer_promos">
        <span class="bold_link_container"><span class="new">New!</span> <a href="http://www.google.com/ig/gmchoices">Create your own gadget</a> and share it with friends.</span><br><br><a href="/intl/en/ads/">Advertising&nbsp;Programs</a> -
        <a href="/services/">Business Solutions</a> - <a href="/intl/en/help/privacy_fusionph.html">Privacy Policy</a> -
        <a href="/support/?ctx=web&hl=en">Help</a> - <a href="/intl/en/about.html">About Google</a> -
        <a href="javascript:_dlsetp('gm=0','http://www.google.com/ig/cp')">Mobile</a><br><br><span class="copyr">&copy;2007 Google</span>
    </p></div>
</div>
<script>_table = _gel("t_1");
_tabs = _gel("tabs");
_pl = true;
_IG_time.stop("upcstart");
_IG_time.stop("upcend");
_IG_start_refresh_cycle(1200, 600);
_IG_time.stop("domloadstart");
_IG_AddEventHandler("domload", function()
{
    _IG_time.stop("domloadend");
});
_IG_TriggerDelayedEvent("domload");
_IG_AddEventHandler("load", function()
{
    _IG_time.stop("load");
    if (parseInt(Math.random() * 100.0) == 1)
    {
        var url = "dls=" + _IG_time.get("domloadstart") + "&dle=" + _IG_time.get("domloadend") + "&upcs="
                + _IG_time.get("upcstart") + "&upce=" + _IG_time.get("upcend") + "&load=" + _IG_time.get("load");
        _sendx("/ig/nop?timing=" + _esc(url), null, false);
    }
});</script>
</body>
</html>